//
//  UserList.m
//  Login
//
//  Created by ZF on 17/2/27.
//  Copyright © 2017年 ZF. All rights reserved.
//

#import "UserList.h"

@implementation UserList

@end

@implementation UserListItem
- (Class)getSubDataClassInArrayForKey:(NSString *)key
{
    if([key isEqualToString:@"data"])
    {
        return [UserListData class];
    }
    if([key isEqualToString:@"deps"])
    {
        return [UserListDeps class];
    }
    return nil;
}
@end

@implementation UserListData
- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        [super setValue:value forKey:@"Id"];
    }else{
        [super setValue:value forKey:key];
    }
}
@end

@implementation UserListDeps
- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        [super setValue:value forKey:@"Id"];
    }else{
        [super setValue:value forKey:key];
    }
}
@end
